<?php
class PaymentDue extends AppModel {
    var $name = 'PaymentDue';
    var $primaryKey = 'payment_due_id';
    var $displayField = 'building_id';

    var $belongsTo = array(
        'Building',
        'InterestScheme' => array(
            'className' => 'LookupValue',
            'foreignKey' => 'interest_scheme',
            'conditions' => array('InterestScheme.lookup_type' => 'INTEREST_SCHEME_TYPE'),
            'order' => 'InterestScheme.meaning'
        )
    );
}
?>
